[PATCH] [clang] cmake: resolve symlinks in ClangConfig.cmake
authorPeter Wu <peter@lekensteyn.nl>
Fri, 4 May 2018 13:55:26 +0000 (15:55 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 12 Feb 2025 13:26:20 +0000 (14:26 +0100)
commit52869e44c548647d615cef1745d1c811c438bbf9
treed3a240bf482db4370f7903892ecb4d96f60a5610
parentb40f1b9df8b107978d8fa7f34e0c7cee9b7a95d2
[PATCH] [clang] cmake: resolve symlinks in ClangConfig.cmake

Ensure that symlinks such as /usr/lib/cmake/clang-X.Y (pointing to
/usr/lib/llvm-X.Y/lib/cmake/llvm) are resolved. This ensures that
CLANG_INSTALL_PREFIX ends up to be /usr/lib/llvm-X.Y instead of /usr.

Partially addresses PR37128

Gbp-Pq: Name 0001-tools-clang-cmake-resolve-symlinks-in-ClangConfig.cmake.patch
cmake/Modules/FindPrefixFromConfig.cmake